package com.qianfeng.openapi.monitor.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2021/1/5
 * @Time: 下午4:26
 */
@FeignClient(serviceId = "openapi-cache")
public interface CacheServiceClient {

    @GetMapping("/cache/lock")
    public boolean lock(@RequestParam(name = "key")String key, @RequestParam(name = "milliSeconds")long milliSeconds);

    @DeleteMapping("/cache/delKey")
    public boolean delKey(@RequestParam(name = "key")String key);



}
